package elion.com.theElion.activityMain;

import android.content.res.Resources;
import android.support.v4.app.Fragment;

import java.util.ArrayList;
import java.util.List;

import elion.com.elion.R;
import elion.com.theElion.fragmentLandData.QixiangDataFragment;
import elion.com.theElion.fragmentLandData.SoilDataFragment;
import elion.com.theElion.fragmentLandData.WaterDataFragment;


/**
 * Created by xiaon on 2017/6/5.
 */

public class LandActivity extends MyTabActivity
{
    @Override
    public List<Fragment> setFragment()
    {
        List<Fragment> fragments = new ArrayList<>();
        QixiangDataFragment first = new QixiangDataFragment();
        SoilDataFragment second = new SoilDataFragment();
        WaterDataFragment third = new WaterDataFragment();
        fragments.add(first);
        fragments.add(second);
        fragments.add(third);
        return fragments;
    }

    @Override
    public String[] setTitles()
    {
        Resources res = getResources();
        String[] titles = res.getStringArray(R.array.LandDataKind);
        return titles;
    }

    @Override
    public void setting() {

    }

    @Override
    public void tabLayoutSetting()
    {

    }

}
